eeprom14 2.2.0
Loading...
Searching...
No Matches
main.c File Reference

EEPROM 14 Click example. More...

#include "board.h"
#include "log.h"
#include "eeprom14.h"

Macros

#define DEMO_TEXT_MESSAGE_1   "MIKROE"
#define DEMO_TEXT_MESSAGE_2   "EEPROM 14 Click"
#define STARTING_ADDRESS   0x0123

Functions

void application_init (void)
void application_task (void)
int main (void)

Detailed Description

EEPROM 14 Click example.

Description

This example demonstrates basic read and write operations on the EEPROM 14 Click. The application writes predefined text messages into memory, then reads them back and logs the results for verification.

The demo application is composed of two sections :

Application Init

Initializes the logger, configures and initializes the EEPROM 14 Click.

Application Task

Writes and reads text messages from EEPROM memory, displaying the stored values via the UART logger.

Author
Stefan Filipovic

Macro Definition Documentation

◆ DEMO_TEXT_MESSAGE_1

#define DEMO_TEXT_MESSAGE_1   "MIKROE"

◆ DEMO_TEXT_MESSAGE_2

#define DEMO_TEXT_MESSAGE_2   "EEPROM 14 Click"

◆ STARTING_ADDRESS

#define STARTING_ADDRESS   0x0123

Function Documentation

◆ application_init()

void application_init ( void )

< Logger config object.

< Click config object.

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )